package cn.lbf.stuniversity.equipmenttype.dao;


import cn.lbf.stuniversity.equipmenttype.entity.EquipmentType;
import cn.lbf.stuniversity.equipmenttype.form.EquipTypeAddForm;
import cn.lbf.stuniversity.equipmenttype.form.EquipTypeDetailForm;
import cn.lbf.stuniversity.equipmenttype.form.EquipTypeForm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface EquipmentTypeDao {
    public int addNew(EquipTypeAddForm equipTypeAddForm);
    public List<EquipmentType> selectAll();
    public int selectEquipTypeCountByIdAndName(Map<String, Object> map);
    public EquipmentType selectById(String equipmentTypeId);
    public List<EquipmentType> selectAllEquipmentTypes();
    public List<EquipmentType> selectEquipTypeByIdAndName(EquipTypeForm form);
    public long queryCount(EquipTypeForm form);
    public int deleteByUpdateId(String equipmentTypeId);
    public int updateByEquipmentTypeId(EquipTypeDetailForm equipTypeDetailForm);
}
